package cn.bluethink.eguan.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import cn.bluethink.eguan.core.service.EgConfigInfoService;

/**
 * eguan+系统初始化
 * 
 * @title 苏州中科蓝迪公司所有(c)2016-2021
 * @version 0.1.0
 * @describe
 * @author liuxn
 * @date 2018年8月23日
 */
@Component
public class EgStartupRunner implements CommandLineRunner {
	@Autowired
	private EgConfigInfoService systemService;

	@Override
	public void run(String... arg0) throws Exception {
		System.out.println("========驿管+开始启动========");
		systemService.systemInit();
		System.out.println("========驿馆初始化成功========");
	}
}